package com.huatai.saas.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @BelongsProject: nanming-saas
 * @BelongsPackage: com.huatai.saas.entity
 * @Author: hecaiy
 * @CreateTime: 2024-04-11  19:18
 * @Description: TODO 分片文件临时存放路径
 * @Version: 1.0
 */
@TableName("file_chunk")
@Data
@ApiModel(value = "分片文件临时存放路径", description = "分片文件临时存放路径")
public class FileChunkEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.ASSIGN_ID)
	private Long id;
	@TableField("chunk_number")
	@ApiModelProperty(value = "文件块编号")
	private Integer chunkNumber;
	@TableField("chunk_size")
	@ApiModelProperty(value = "分块大小")
	private Long chunkSize;
	@TableField("current_chunk_size")
	@ApiModelProperty(value = "当前分块大小")
	private Long currentChunkSize;
	@ApiModelProperty(value = "文件名称")
	private String fileName;
	@ApiModelProperty(value = "文件唯一标识")
	private String identifier;
	@TableField("relative_path")
	@ApiModelProperty(value = "相对路径")
	private String relativePath;
	@TableField("total_chunks")
	@ApiModelProperty(value = "总块数")
	private Long totalChunks;
	@TableField("total_size")
	@ApiModelProperty(value = "总大小")
	private Long totalSize;
}
